import request from "@/utils/request";

export const getassetList = () => {
    return request({
        url: '/category/getCategory',
        method: 'GET'
    })
}



export const inserAsset = data => {
    return request({
        url: '/category/addCategory',
        data,
        method: 'POST'
    })
}
export const delassetList = params => {
    return request({
        url: '/category/deleteCategory',
        params
    })
}
// /template/list?pageSize=5&pageNum=1&templateTitle=&agentId=
export const getTempList = params => {
    return request({
        url: '/template/list',
        params
    })
}
export const templateupdate = data => {
    return request({
        url: '/template/update',
        data,
        method: 'POST'
    })
}
export const uploadfile = data => {
    return request({
        url: '/file/upload',
        data,
        method: 'POST'
    })
}
// /template/update